package ${modelPackage};

/**
* @author codefalse-mybatisGen-maven-plugin
*/
public class WhereItem {

    public WhereItem(String column, String operator, Object value) {
        setColumn(column);
        setOperator(operator);
        setValue(value);
    }

    //表单字段
    private String column;
    //操作符< > = 等等
    private String operator;
    //具体值
    private Object value;

    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        if (column == null || column.trim().length() == 0) {
            return;
        }
        if (column.charAt(0) == '`') {
            this.column = column;
        } else {
            this.column = "`" + column + "`";
        }
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
